package com.xyoto.community.entity.main;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author coderFu
 * @create 2021/11/8
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("匿名用户信息实体")
@NoArgsConstructor
public class AnonymousUser extends Base {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("用户头像id")
    private String anonymousAvatarUrl;

    @ApiModelProperty("匿名用户名称id")
    private String anonymousName;

    @JsonIgnore
    @ApiModelProperty("删除状态")
    private short deleteStatus;

    public AnonymousUser(String anonymousAvatarUrl, String anonymousName) {
        this.anonymousAvatarUrl = anonymousAvatarUrl;
        this.anonymousName = anonymousName;
    }
}
